<template>
  <div class="right-top">
    <nav class="title"></nav>
    <nav class="main-title">
      <div class="name">项目名称</div>
      <div class="center">投资规模</div>
      <div class="right">项目状态</div>
    </nav>
    <app-seamless-scroll height="330px" width="480px">
      <template v-for="item in array" :key="item.id">
        <ul class="content">
          <li class="name" :title="item.name">{{item.name}}</li>
          <li class="price">22万</li>
          <li class="status">在建</li>
        </ul>
      </template>
    </app-seamless-scroll>
  </div>
</template>

<script setup lang="ts" name="LeftTop">
let array = new Array(20).fill({
  id:Math.random(),
  name:'润阳一期年产13GWN型高效太阳能电池片项目',
  price:'39万',
  status:'在建'
})
</script>

<style scoped lang="less">
.right-top{
  width: 490px;
  height: 382px;
  position: absolute;
  background: #172342;
  right: 35px;
  overflow: hidden;
  top: 76px;
  .title{
    width: 450px;
    height: 35px;
    margin: 13.22px 10px 0 10px;
    background-image: url(../assets/right-top.svg);
  }
  .main-title{
    width: 100%;
    display: flex;
    font-weight: 600;
    height: 25px;
    line-height: 25px;
    padding-left: 5px;
    box-sizing: border-box;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.06);
    font-size: 14px;
    margin: 10px;
    color: #ededed;
    .name{
      width: 223px;
    }
    .center{
      width: 80px;
    }
    .right{
      width: 80px;
    }
  }
  .content{
    box-sizing: border-box;
    padding: 0 0 0 20px;
    display: flex;
    justify-content: space-between;
    height: 30px;
    color: #ededed;
    .name{
      width: 223px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
    .price{
      width:70px;
    }
    .status{
      width: 50px;
    }
    li{
      list-style: none;
    }
  }
}
</style>
